package com.addplus.townmall.server.api.constant;

import java.math.BigDecimal;

/**
 * 类描述:存放公共的常量值
 *
 * @author ljt
 * @version V1.0
 * @date
 */
public class StringConstant {

    /**
     * http请求方式
     */
    public final static String REQUEST_HTTP = "http";

    /**
     * ws请求方式
     */
    public final static String REQUEST_WEBSOCKET = "ws";

    /**
     * 请求参数token的键
     */
    public final static String REQ_TOKEN_KEY = "token_define";

    /**
     * token的键
     */
    public final static String TOKEN = "token";

    /**
     * 不需要token
     */
    public final static String NOT_TOKEN = "noToken";

    /**
     * 需要token
     */
    public final static String NEED_TOKEN = "needToken";

    /**
     * ip地址
     */
    public final static String IP_ADDRESS = "ipAddress";

    /**
     * token存入redis的前缀
     */
    public final static String REDIS_LOG_RRCORD_TPOIC = "log_record";

    /**
     * log日志记录发送者topic
     */
    public final static String TOKEN_REDIS_PREFIX = "token_rest:";

    /**
     * 不需要的字符串
     */
    public final static String NOCONFIRM = "1";

    /**
     * Redis数据字典
     */
    public final static String REDIS_DATA_DICTIONARY = "redis_data_dictionary:";

    /**
     * shrio 请求登录次数
     */
    public final static String REDIS_PREFIX = "shrio_login_count:{0}:{1}";

    /**
     * url动态刷新消息发送者topic
     */
    public final static String REDIS_SHRIO_PERMISSION_TPOIC = "url_filter";

    /**
     * HTTP请求头部鉴权
     */
    public static final String ACCESS_CONTROL_ALLOW_CREDENTIALS = "Access-Control-Allow-Credentials";

    /**
     * HTTP请求头部域
     */
    public static final String ACCESS_CONTROL_ALLOW_ORIGIN = "Access-Control-Allow-Origin";

    /**
     * 请求头授权验证
     */
    public static final String ACCESS_CONTROL_ALLOW_AUTHORIZATION = "Authorization";

    /**
     * 验证码请求前缀
     */
    public static final String MESSAGE_VERIFICATION_CODE = "verification_Code:{0}:{1}:{2}";

    /**
     * App启动前-启动页
     */
    public static final String APP_STARTUP_START = "app_startup:start";

    /**
     * App启动前-引导页
     */
    public static final String APP_STARTUP_GUIDE = "app_startup:guide";

    /**
     * 商城Banner位置
     */
    public static final String SHOP_MALL_BANNER = "shop_mall_banner:{0}:{1}";

    /**
     * 商城Banner位置
     */
    public static final String SHOP_MALL_NAVIGATE = "shop_mall_navigate:{0}";

    /**
     * 商城意见反馈类型
     */
    public static final String SHOP_FEEDBACK_TYPE = "shop_feedback_type";

    /**
     * 商城协议内容前缀
     */
    public static final String SHOP_PROTOCOL = "shop_protocol:{0}:{1}";

    /**
     * 商城商品分类前缀
     */
    public static final String SHOP_CATEPLATFORM = "shop_cateplatform:{0}";

    /**
     * 商城商品详情评价
     */
    public static final String SHOP_DESCRIBE_COMMENT_SHORT = "shop_describe_comment_shore:{0}:{1}";

    /**
     * 商城商品详情商品介绍
     */
    public static final String SHOP_DESCRIBE_DESCIPTION = "shop_describe_desciption:{0}:{1}";

    /**
     * 商城区域地址
     */
    public static final String SHOP_AREA = "shop_area:{0}";

    /**
     * 商城故事分类前缀
     */
    public static final String SHOP_STORY_TYPE = "shop_story_type";

    /**
     * 商城二维码访问前缀
     */
    public static final String SHOP_DISTRIBUTION_QRCODE = "shop_distribution_qrcode:{0}";

    /**
     * 产品名称:云通信短信API产品
     */
    public static final String ALIYUN_SMS_PRODUCT = "Dysmsapi";

    /**
     * 产品域名
     */
    public static final String ALIYUN_SMS_DOMAIN = "dysmsapi.aliyuncs.com";

    /**
     * 产品区域
     */
    public static final String ALIYUN_SMS_REGIONID = "cn-hangzhou";

    /**
     * 短信签名
     */
    public static final String ALIYUN_SMS_SIGNNAME = "小镇商城";

    /**
     * 商城店铺分类主键id
     */
    public static final String STORE_CATEPLATFORM = "store_cateplatform:{0}";

    /**
     * 搜索历史
     */
    public static final String SEARCH_HISTORY = "search_history:{0}:{1}";

    /**
     * 订单序号id
     */
    public static final String ORDER_NUM = "order_num";

    /**
     * 退货序列表
     */
    public static final String REFUND_NUM = "refund_num";

    /**
     * 订单保存redis前缀
     */
    public static final String SHOP_ORDER_PREFIX = "shop_order_message:";

    /**
     * 微信小程序通讯秘钥sessionKey
     */
    public final static String WXSESSIONKEY_REDIS_PREFIX = "wechat_rest:";

    /**
     * 图片验证码
     */
    public final static String IMAGE_VERIFICATION_CODE = "image_verification_code:{0}";

    /**
     * 商品编号rediskey
     */
    public static final String SHOP_PRODUCT_CODE_KEY = "shopProductCode";

    /**
     * 礼品卡编号rediskey
     */
    public static final String GIFT_CODE_KEY = "giftCode";

    /**
     * 平台分销开关设置redis字段
     */
    public static final String DistributionSetting = "DistributionSetting";

    /**
     * 小程序首页显示数量数据字典key
     */
    public static final String MINI_MAIN_SHOW_COUNT = "mini_main_show_count";

    /**
     * 小程序首页显示数量-自营
     */
    public static final String OPERATED = "operated";

    /**
     * 小程序首页显示数量-优选
     */
    public static final String OPTIMAL = "optimal";

    /**
     * 小程序首页显示数量-拼团
     */
    public static final String FIGHT = "fight";

    /**
     * 小程序首页显示数量-折扣
     */
    public static final String DISCOUNT = "discount";

    /**
     * 小程序首页显示数量-礼品卡
     */
    public static final String GIFT_CARD = "gift_card";

    /**
     * 小程序首页显示数量-会员专享
     */
    public static final String EXCLUSIVE = "exclusive";

    /**
     * 邀请码
     */
    public static final String INVITECODE = "invite_code";

    /**
     * 拼团商品参团数量
     */
    public static final String SHOP_PRODUCT_FIGHT_PART_COUNT = "shop_product_fight_part_count:{0}";

    /**
     * 礼品卡账号前缀
     */
    public static final String GIFT_CARD_BATCH_CREATE_ACCOUNT = "gift_card_batch_create_account";

    /**
     * 礼品卡密码前缀
     */
    public static final String GIFT_CARD_BATCH_CREATE_PASSWORD = "gift_card_batch_create_password";
    /**
     * 分销比例参数 普通个人分销
     */
    public static final String PT_PERSONAL = "PT_Personal";

    /**
     * 分销比例参数 个人店铺分销
     */
    public static final String DP_PERSONAL = "DP_Personal";


    /**
     * 分销比例参数 企业店铺分销
     */
    public static final String DP_COMPANY = "DP_Company";

    /**
     * 微信支付回调失败
     */
    public static final String WECHAT_FAIL = "FAIL";

    /**
     * 微信支付回调成功
     */
    public static final String WECHAT_SUCCESS = "SUCCESS";

    /**
     * 阿里支付回调：交易创建，等待买家付款
     */
    public static final String ALIPAY_WAIT = "WAIT_BUYER_PAY";

    /**
     * 阿里支付回调：未付款交易超时关闭，或支付完成后全额退款
     */
    public static final String ALIPAY_CLOSED = "TRADE_CLOSED";

    /**
     * 阿里支付回调：交易支付成功
     */
    public static final String ALIPAY_SUCCESS = "TRADE_SUCCESS";

    /**
     * solr 索引库名称
     */
    public static final String SOLR_COLLECTION = "townmall";

    /**
     * solr 搜索商品名称
     */
    public static final String SOLR_QUERY_SHOPNAME = "shopName:{0}";

    /**
     * solr 搜索名称(商品类型)
     */
    public static final String SOLR_QUERY_SHOP = "shopName:{0} or shopProductDescribe: {0} or shopDescribe: {0}";

    /**
     * solr 搜索名称(礼品卡)
     */
    public static final String SOLR_QUERY_GIFT = "giftCardName:{0} or giftDescribe: {0}";

    /**
     * solr 搜索名称(故事类型)
     */
    public static final String SOLR_QUERY_STORY = "title:{0} or brief: {0} or context: {0} ";

    /**
     * solr 搜索名称(商品类型)
     */
    public static final String SOLR_QUERY_STORE = "storeName:{0} or storeIntroduction: {0}";

    /**
     * redis存储所有类目表
     */
    public static final String PLATFORM_CATEGORY_BATCH = "platform_category_batch";

    /**
     * 退货步骤超时时间
     */
    public static final String REFUND_END_TIME = "refund_end_time";

    /**
     * 获取物流公司
     */
    public static final String SHOP_COURIER_COMPANY = "shop_courier_company";

    /**
     * 手续费数据字典key
     */
    public static final String WITHDRAW_FEE = "withdraw_fee";

    /**
     * 支付宝手续费
     */
    public static final String ALIPAY_SERVICE_CHARGE = "alipay";

    /**
     * 微信手续费
     */
    public static final String WECHAT_SERVICE_CHARGE = "wxpay";

    /**
     * 百元实体类
     */
    public static final BigDecimal HUNDRED_CONSTANT = BigDecimal.valueOf(100);

    /**
     * 特殊奖励数据字典
     */
    public static final String INVITE_REWARD = "invite_reward";

    /**
     * 是否开启特殊奖励
     */
    public static final String START_REWARD = "start_reward";

    /**
     * 注册默认用户头像
     */
    public static final String DEFALUT_HEAD = "defalut_head";

    /**
     *
     */
    public static final String UNIAPP_LOGINWAY_WECHAT = "weixin";
}
